package top.chj.day16.zhengze;

import org.junit.Test;

/**
 * @Auther:小陈的Java
 */
public class RegexDemo2 {
    @Test
    public void test1(){
        System.out.println("a9".matches("^[abc][0-9]$"));
    }
    @Test
    public void test2(){
        System.out.println("a9".matches("\b[abc]\b"));
    }
    @Test
    public void test3(){
        System.out.println("$".matches("\\B."));
    }
}
